An Earley-Style Parser for Multiple Context-Free Grammars

نویسنده

  • Daniel M. Albro
چکیده

We de ne an m-multiple context-free grammar (m-mcfg) as in Seki et al. 1991. A multiple context-free grammar G is a ve-tuple 〈N,O,F,R, S〉, where N is a set of distinguished non-terminal symbols; O ⊆ ⋃ n∈N+(Σ ∗)n is a set of tuples of strings from the input alphabet Σ; F ⊆ ⋃ n∈N Fn, where Fn is the set of partial functions from On to O, is a set of string-transformation functions; R ⊆ ⋃ n∈N(N × Nn × (Fn ∩ F )) is a set of grammar rules, written A → g[B1 . . . Bn(g)] for A,Bi ∈ N, 1 ≤ i ≤ n(g), g ∈ Fn(g); and S ∈ N is a distinguished start symbol. To qualify as an m-mcfg, the grammar must further have the following properties: 1. The dimension of tuples in O is bounded: O ⊆ ⋃m i=1(Σ ∗)i 2. For all g ∈ Fn(g),

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

An Incremental Earley Parser for Simple Range Concatenation Grammar

We present an Earley-style parser for simple range concatenation grammar, a formalism strongly equivalent to linear context-free rewriting systems. Furthermore, we present different filters which reduce the number of items in the parsing chart. An implementation shows that parses can be obtained in a reasonable time.

متن کامل

Simple, Efficient, Sound and Complete Combinator Parsing for All Context-Free Grammars, Using an Oracle

Parsers for context-free grammars can be implemented directly and naturally in a functional style known as “combinator parsing”, using recursion following the structure of the grammar rules. Traditionally parser combinators have struggled to handle all features of context-free grammars, such as left recursion. Previous work introduced novel parser combinators that could be used to parse all con...

متن کامل

A New Method for Dependent Parsing

Dependent grammars extend context-free grammars by allowing semantic values to be bound to variables and used to constrain parsing. Dependent grammars can cleanly specify common features that cannot be handled by context-free grammars, such as length fields in data formats and significant indentation in programming languages. Few parser generators support dependent parsing, however. To address ...

متن کامل

A Modified Earley Parser for Huge Natural Language Grammars

For almost a half century Earley parser has been used in the parsing of context-free grammars and it is considered as a touch-stone algorithm in the history of parsing algorithms. On the other hand, it is also known for being expensive from its time requirement and memory usage perspectives. For huge context-free grammars, its performance is not good since its time complexity also depends on th...

متن کامل

Simple, Functional, Sound and Complete Parsing for All Context-Free Grammars

Parsers for context-free grammars can be implemented directly and naturally in a functional style known as “combinator parsing”, using recursion following the structure of the grammar rules. However, naive implementations fail to terminate on left-recursive grammars, and despite extensive research the only complete parsers for general contextfree grammars are constructed using other techniques ...

متن کامل

Partially Ordered Multiset Context-free Grammars and Free-word-order Parsing

We present a new formalism, partially ordered multiset context-free grammars (pomsCFG), along with an Earley-style parsing algorithm. The formalism, which can be thought of as a generalization of context-free grammars with partially ordered right-hand sides, is of interest in its own right, and also as infrastructure for obtaining tighter complexity bounds for more expressive context-free forma...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2005